import request from "@/router/axios.js";
export function tablePage({ currentPage, pageSize }, params) {
  return request({
    url: "/admin/sysGenerate/tablePage",
    method: "get",
    params: {
      currentPage,
      pageSize,
      ...params,
    },
  });
}
// 生成代码
export function build(params) {
  return request({
    url: "/admin/sysGenerate/build",
    method: "get",
    params: params,
  });
}
// 列表
export function list(params) {
  return request({
    url: "/admin/sysGenerate/list",
    method: "get",
    params: params,
  });
}
// 分页列表
export function pageList({ currentPage, pageSize }, params) {
  return request({
    url: "/admin/sysGenerate/pageList",
    method: "get",
    params: {
      currentPage,
      pageSize,
      ...params,
    },
  });
}
//查询
export function query(id) {
  return request({
    url: "/admin/sysGenerate/query",
    method: "get",
    params: {
      id,
    },
  });
}
// 新增
export function save(data) {
  return request({
    url: "/admin/sysGenerate/save",
    method: "post",
    data: data,
  });
}
// 修改
export function update(data) {
  return request({
    url: "/admin/sysGenerate/update",
    method: "post",
    data: data,
  });
}
// 删除
export function remove(ids) {
  return request({
    url: "/admin/sysGenerate/remove",
    method: "get",
    params: {
      ids,
    },
  });
}
